<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<title><?php
	/*
	 * Print the <title> tag based on what is being viewed.
	 */
	global $page, $paged;

	wp_title( '|', true, 'right' );

	// Add the blog name.
	bloginfo( 'name' );

	// Add the blog description for the home/front page.
	$site_description = get_bloginfo( 'description', 'display' );
	if ( $site_description && ( is_home() || is_front_page() ) )
		echo " | $site_description";

	// Add a page number if necessary:
	if ( $paged >= 2 || $page >= 2 )
		echo ' | ' . sprintf( __( 'Page %s', 'twentyten' ), max( $paged, $page ) );

	?></title>

<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo('template_url'); ?>/style.css?2012062424221" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<?php
	/* We add some JavaScript to pages with the comment form
	 * to support sites with threaded comments (when in use).
	 */
	if(!is_admin())
             wp_enqueue_script('jquery');
	if ( is_singular() && get_option( 'thread_comments' ) )
		wp_enqueue_script( 'comment-reply' );

	/* Always have wp_head() just before the closing </head>
	 * tag of your theme, or you will break many plugins, which
	 * generally use this hook to add elements to <head> such
	 * as styles, scripts, and meta tags.
	 */
	wp_head();
?>
</head>
<script type="text/javascript">
    jQuery(document).ready(function($){

    });

</script>
<body <?php body_class(); ?>>
        <div id="main-wrapper">
            <div class="toolbar" >
                <div id="greeting">
                    <div>欢迎光临肇庆新区门户网站</div>
                    <div id ="clock">
                        今天是：<script language="JavaScript" type="text/javascript">
                        <!--
                        var enabled = 0; today = new Date();
                        var day; var date;
                        if(today.getDay()==0) day = " 星期日"
                        if(today.getDay()==1) day = " 星期一"
                        if(today.getDay()==2) day = " 星期二"
                        if(today.getDay()==3) day = " 星期三"
                        if(today.getDay()==4) day = " 星期四"
                        if(today.getDay()==5) day = " 星期五"
                        if(today.getDay()==6) day = " 星期六"
                        date = (today.getFullYear()) + "年" + (today.getMonth() + 1 ) + "月" + today.getDate() + "日" + day +"";
                        document.write(date);
                        // -->
                    </script>
                    </div>
                    <div id="weather"><iframe src="http://m.weather.com.cn/m/pn7/weather.htm?id=101280901T" width="195" height="18" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"></iframe></div>
                </div>

                <div class="lang"><a target="_blank" href="#">中文</a> | <a target="_blank" href="#">EN</a></div>
                <div id="search_area">
                    <?php get_search_form(); ?>
                </div>

            </div>

        <?php if (is_home() || is_front_page()) { ?>
            <div class="gg_home">
                <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="985" height="384">

                    <param name="movie" value="<?php bloginfo('template_url'); ?>/images/home.swf?11" />

                    <param name="quality" value="high" />

                    <param name="wmode" value="opaque" />

                    <embed src="<?php bloginfo('template_url'); ?>/images/home.swf?11" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="985" height="384" wmode="opaque"></embed>

                </object>
            </div>
        <div class="m group banner" id="home-banner">
            <div class="nav">
                <ul class="nav" id="sub-page-nav">
                    <li><a href="/" id="home-link">首页</a></li>
                    <li>
                        <a target="_blank" href="/?cat=3" class="nav-items">走进新区</a>
                        <ul class="shadow">
                            <li class="clear"><a target="_blank" href="/?page_id=448">新区大事记</a></li>
                            <li class="clear"><a target="_blank" href="/?page_id=463">图说新区</a></li>
                            <li class="clear"><a target="_blank" href="/?page_id=249">新区概述</a></li>
                        </ul>
                    </li>


                    <li>
                        <a target="_blank" href="/?cat=16" class="nav-items">政务公开</a>
                        <ul class="shadow">
                            <li class="clear"><a target="_blank" href="/?page_id=264">领导班子</a></li>
                            <li class="clear"><a target="_blank" href="/?cat=39">机构设置</a></li>
                            <li class="clear"><a target="_blank" href="/?cat=18">信息公开</a></li>
                            <li class="clear"><a target="_blank" href="/?cat=34">资料下载</a></li>
                        </ul>
                    </li>

                    <li>
                        <a target="_blank" href="/?cat=11" class="nav-items">新闻纵横</a>
                        <ul class="shadow">
                            <li class="clear"><a target="_blank" href="/?cat=12">新区要闻</a></li>
                            <li class="clear"><a target="_blank" href="/?cat=13">图片新闻</a></li>
                            <li class="clear"><a target="_blank" href="/?cat=14">视频新闻</a></li>
                        </ul>
                    </li>

                    <li>
                        <a target="_blank" href="/?cat=40" class="nav-items">规划之窗</a>
                    </li>

                    <li>
                        <a href="/?cat=7" class="nav-items">投资新区</a>
                        <ul class="shadow">
                            <li class="clear"><a target="_blank" href="/?cat=9">投资政策</a></li>
                            <li class="clear"><a target="_blank" href="/?cat=38">投资环境</a></li>
                            <li class="clear"><a target="_blank" href="/?cat=41">投资项目</a></li>
                        </ul>
                    </li>
                    <li id="oalink">
                        <a target="_blank" href="http://211.139.255.215:8082" class="nav-items">新区政务办公(OA)系统</a>
                    </li>
                </ul>
            </div>

        </div>
        <?php }else{ ?>

            <div class="m group" id="banner-wrapper">
                <div id="logo"></div>

                <div class="m group banner" id="sub-page-nav-wrapper">
                    <ul class="nav" id="sub-page-nav">
                        <li><a href="/" id="home-link">首页</a></li>
                        <li>
                            <a href="/?cat=3" class="nav-items">走进新区</a>
                            <ul class="shadow">
                                <li class="clear"><a href="/?page_id=448">新区大事记</a></li>
                                <li class="clear"><a href="/?page_id=463">图说新区</a></li>
                                <li class="clear"><a href="/?page_id=249">新区概述</a></li>
                            </ul>
                        </li>


                        <li>
                            <a href="/?cat=16" class="nav-items">政务公开</a>
                            <ul class="shadow">
                                <li class="clear"><a href="/?page_id=264">领导班子</a></li>
                                <li class="clear"><a href="/?cat=39">机构设置</a></li>
                                <li class="clear"><a href="/?cat=18">信息公开</a></li>
                                <li class="clear"><a href="/?cat=34">资料下载</a></li>
                            </ul>
                        </li>

                        <li>
                            <a href="/?cat=11" class="nav-items">新闻纵横</a>
                            <ul class="shadow">
                                <li class="clear"><a href="/?cat=12">新区要闻</a></li>
                                <li class="clear"><a href="/?cat=13">图片新闻</a></li>
                                <li class="clear"><a href="/?cat=14">视频新闻</a></li>
                            </ul>
                        </li>

                        <li>
                            <a href="/?cat=40" class="nav-items">规划之窗</a>
                        </li>

                        <li>
                            <a href="/?cat=7" class="nav-items">投资新区</a>
                            <ul class="shadow">
                                <li class="clear"><a href="/?cat=9">投资政策</a></li>
                                <li class="clear"><a href="/?cat=38">投资环境</a></li>
                                <li class="clear"><a href="/?cat=41">投资项目</a></li>
                            </ul>
                        </li>
                    </ul>
                </div>

            </div>
              <?php } ?>
